<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺广告列表页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${root}/u/js/pony.js" type="text/javascript"></script>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择要删除的数据");
		return;
	}
	if(!confirm("确认删除")) {
		return;
	}
	var f = document.getElementById('tableForm');
	f.action="delete.jspx";
	f.submit();
}

function getTableForm(){
	return document.getElementById("tableForm");
}
</script>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">  
        <div class="user_title2">广告列表<a href="add.jspx?storeId=${storeId!}" target="_self" class="fr" style="margin-right:5px;">添加</a></div>  
		<div class="clear10"></div> 
        <form id="tableForm" method="post">
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc">
        <tr>
        <td width="40" height="30" align="center" bgcolor="#f0f0f0"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></td>
        <td width="40" align="center" bgcolor="#f0f0f0">ID</td>
        <td align="center" bgcolor="#f0f0f0">广告名称</td>
        <td width="150" align="center" bgcolor="#f0f0f0">版位名称</td>
        <td width="80" align="center" bgcolor="#f0f0f0">权重</td>
        <td width="100" align="center" bgcolor="#f0f0f0">点击/展示</td>
        <td width="80" align="center" bgcolor="#f0f0f0">启用</td>
        <td width="120" align="center" bgcolor="#f0f0f0">操作选项</td>
        </tr>
        </table>
        [@advertise_page storeId=store.id count='20']
        <table class="favorite_tb" cellspacing="0" cellpadding="0" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as advertise]
        <tr>
        <td width="40" align="center"><input type="checkbox" name="ids" value="${advertise.id}"/></td>
        <td width="40" height="40" align="center">${advertise.id!}</td>
        <td>${advertise.name!}</td>
        <td width="150" align="center">${advertise.adspace.name!}<input type="hidden" name="wids" value="${advertise.id}"/></td>
        <td width="80" align="center">${advertise.weight}</td>
        <td width="100" align="center">${advertise.clickCount!0}/${advertise.displayCount!0}</td>
        <td width="80" align="center">${advertise.enabled?string("是","否")}</td>
        <td width="120" align="center"> <a href="edit.jspx?id=${advertise.id}&pageNo=${pageNo}">修改</a>|
        <a href="delete.jspx?ids=${advertise.id}&pageNo=${pageNo}">删除</td>
        </tr>
        <tr>
        <td height="1" colspan="8" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        [#else]
        <div class="zwsj">暂无数据</div>
        [/#if]
        </table>
        <div class="pageNumber">[@pagination_style sysPage='3'/]</div>
        [/@advertise_page]
        <input type="button" value="删除" class="menu_ok" onclick="optDelete();"/>
        </form>
		</div>
	</div>
	<div class="clear20"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>